<template>
	<div class="bestlist">
		<h3 class="title">最佳匹配</h3>
		<ul>
			<li class="artist">
				<a href="JavaScript:;">
					<div class="linkcover">
						<div class="piccover" v-if="this.bestArt[0] && this.bestArt[0].img1v1Url">
							<img :src="`${this.bestArt[0].img1v1Url}`" class="pic">
						</div>
						<div class="describe">
							<h4 class="maindes" v-for="(best,index) in bestArt" :key="index">
								{{best.occupation}}:
								<p class="hcover">
									<span>{{best.name}}</span>
									<span v-if="best.alias.length>=1">{{'('+best.alias[0]+')'}}</span>
								</p>
							</h4>
						</div>
						<i class="bestin"></i>
					</div>
				</a>
			</li>
		</ul>
	</div>
</template>

<script>
	export default {
		props: {
			bestArt: Array
		},
		data() {
			return {

			}
		},
		created() {

		}

	}
</script>

<style lang="less" scoped="scoped">
	.bestlist {
		display: block;
		padding: 8px 0 4px;

		.title {
			margin-left: 10px;
			font-size: 12px;
			line-height: 16px;
			color: #666;
		}

		.artist {
			position: relative;
			height: 66px;
		}

		.linkcover {
			position: relative;
			display: flex;
			align-items: center;
			height: 66px;
			margin-left: 10px;
			padding: 8px 10px 8px 0;
			box-sizing: border-box;

			&::after {
				position: absolute;
				z-index: 2;
				content: "";
				top: 0;
				left: 0;
				pointer-events: none;
				box-sizing: border-box;
				transform-origin: top left;
				border: 0 solid rgba(0, 0, 0, .1);
				border-bottom-width: 1px;
				width: 200%;
				height: 200%;
				transform: scale(.5);
			}
		}

		.piccover {
			display: inline-block;
			flex: 0 0 auto;
			position: relative;
			width: 50px;
			height: 50px;
			margin-right: 15px;
			line-height: 0;


		}

		.pic {
			display: block;
			width: 100%;
		}

		.describe {
			flex: 1;
			display: inline-block;
			width: 1%;

			.maindes {
				font-size: 17px;
				line-height: 30px;
				color: #333;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				word-break: normal;


			}
		}

		.bestin {
			flex: 0 0 auto;
			display: inline-block;
			vertical-align: middle;
			background-position: 0 0;
			background-size: contain;
			background-repeat: no-repeat;
			width: 8px;
			height: 13px;
			background-image: url(../assets/in.svg);
			margin-right: 8px;
			margin-left: 10px;
		}
	}

	.hcover {
		display: inline;

		.highlight {
			color: #507daf;
		}
	}
</style>
